package net.java.nioserver.operations;

import net.java.nioserver.utils.Pool;

import java.nio.ByteBuffer;

/**
 * @author Leonid Shlyapnikov
 */
public class AbstractOperation {
//    private static final Logger log = LoggerFactory.getLogger(AbstractOperation.class);

    protected final Pool<ByteBuffer> byteBufferPool;


    public AbstractOperation(Pool<ByteBuffer> byteBufferPool) {
        if (null == byteBufferPool) {
            throw new NullPointerException("byteBufferPool is null!");
        }
        this.byteBufferPool = byteBufferPool;
    }

    public String toString() {
        return getClass().getSimpleName();
    }
}
